﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //SlidingMessage1.CssClass = "";
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SlidingMessage1.Text = "Congratulations. This works!";
        SlidingMessage1.BackColor = System.Drawing.ColorTranslator.FromHtml("#0DFF00");
        SlidingMessage1.Show();
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        SlidingMessage1.Text = "Ooops! Something went wrong.";
        SlidingMessage1.BackColor = System.Drawing.ColorTranslator.FromHtml("#FF0000");
        SlidingMessage1.Show();
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        SlidingMessage1.Text = "This message is styled using css class";
        SlidingMessage1.Size = 50; // box size (line-height)
        SlidingMessage1.Speed = 500;
        SlidingMessage1.Delay = 1500;
        SlidingMessage1.FontSize = 30; //in pixels
        SlidingMessage1.CssClass = "successMessage";
        SlidingMessage1.Show();
    }
}